package com.myf.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value="whs_inventory_his",autoResultMap = true)
public class InventoryHisEntity  extends BaseEntity {
    @TableId(type = IdType.AUTO)
    public Integer id;

    public int warehouseId;

    public int locationId;

    public int materialId;

    public String documentNo;

    public float documentPrice;

    public Date documentDate;

    public short  documentType;

    @TableField("\"desc\"")
    public String desc;

    @TableField("\"action\"")
    public short action;

    public float quantity;

    public float previousQuantity;

    public float futureQuantity;
}
